-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Update suggest-usage.asciidoc #2928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed CLA, awaiting update |
Thanks for opening the PR @gkinsman! Documentation is generated from tests to ensure that it stays in line with changes in the client. I think this would be a good candidate for a "Search as you type" section under Search as opposed to extending the Usage test. It would follow a narrative, much like the "writing queries" section. Would you like to contribute such a section? This Stack Overflow answer could be used as a starting basis for it and such a section would include
|
Ah! I totally missed the note at the top of the file :). I like that strategy a lot - I can certainly give it a red hot go. It looks like the tests should all be runnable locally using the in memory client - is that correct? I'll give it a go tonight and see what I can turn out :) |
Awesome 😄 It's been on the list of TODOs for some time so any PRs for documentation are hugely welcomed! We have integration tests already for the completion suggester so for the documentation, using the .\build.bat in the root, the unit tests will run, so will ensure all is as intended. Some pointers that I hope will help:
As a heads up, the DocGeneration project does not currently run and emit the asciidoc files (you'll see an error when running Thanks again! |
DocGeneration is now fixed, so you can see what the output asciidoc will look like when building the solution. |
Heya @gkinsman, just a ping to see if you were still interested in looking at this? |
Ah hey, yes! Great to hear the doc gen is now fixed, I struggled a bit last time without it :). Will take a look this weekend I think - still using and loving elastic :). |
Added example of indexing completion suggestions. No existing docs on this, or a hint that a CompletionField is how you generate the term/weight request.
Found it in this forum post: https://discuss.elastic.co/t/using-nest-no-results/106191/10